export default {
  filters: {
    imgFilter(data) {
      return `http://y.gtimg.cn/music/photo_new/T001R800x800M000${ data }.jpg`
    },
    timeFilter(data, num) {
      const minute = parseInt(data / 60, 10);
      const second = data % 60;
      const diffM = new Array(num - String(minute).length + 1).join('0');
      const diffS = new Array(num - String(second).length + 1).join('0');
      return `${ diffM }${ minute }:${ diffS }${ second }`;
    }
  }
}